﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace console.demo.linq
{
    record Planet(
        string Name,
        PlanetType Type,
        int OrderFromSun)
    {
        public static readonly Planet Mercury =
            new(nameof(Mercury), PlanetType.Rock, 1);

        public static readonly Planet Venus =
            new(nameof(Venus), PlanetType.Rock, 2);

        public static readonly Planet Earth =
            new(nameof(Earth), PlanetType.Rock, 3);

        public static readonly Planet Mars =
            new(nameof(Mars), PlanetType.Rock, 4);

        public static readonly Planet Jupiter =
            new(nameof(Jupiter), PlanetType.Gas, 5);

        public static readonly Planet Saturn =
            new(nameof(Saturn), PlanetType.Gas, 6);

        public static readonly Planet Uranus =
            new(nameof(Uranus), PlanetType.Liquid, 7);

        public static readonly Planet Neptune =
            new(nameof(Neptune), PlanetType.Liquid, 8);

        // Yes, I know... not technically a planet anymore
        public static readonly Planet Pluto =
            new(nameof(Pluto), PlanetType.Ice, 9);
    }
}
